<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>经典盒子模型案例</title>
    <style type="text/css">
        body{
            width:500px;
            height:600px;
            border:1px solid blue;
        }
        #div-box1{
            width:100px;
            height:100px;
            border:1px solid red;
            margin:10px 0 0 10px;
            /*填充 盒子会撑大*/
            padding:10px 0 0 10px;
        }
        /*后代选择器*/
        #div-box1 img{
            width:80px;
            height:80px;
            border:1px solid black;
            margin:10px 0 0 10px;
        }
    </style>
</head>
<body>
<div id="div-box1">
    <img src="../qiu.jpg" alt="qiu">
</div>
</body>
</html>